package com.imti.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 考试成绩表
 * </p>
 *
 * @author min
 * @since 2023-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam_score")
public class ExamScore extends Model<ExamScore> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("exam_id")
    private Integer examId;

    @TableField("exam_time")
    private LocalDateTime examTime;

    @TableField("submit_time")
    private LocalDateTime submitTime;

    @TableField("total_score")
    private Integer totalScore;

    @TableField("create_time")
    private LocalDateTime createTime;

}
